package cn.lyh.gulimall.member.controller;

import cn.lyh.gulimall.member.entity.UmsMember;
import cn.lyh.gulimall.member.feign.CouponFeignService;
import cn.lyh.gulimall.member.service.UmsMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import utils.PageUtils;
import utils.R;

import java.util.Map;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
@RestController
@RequestMapping("/member/member")
public class MemberController {


	@Autowired
	UmsMemberService memberService;

	@GetMapping("/list")
	public R getMemberListByPage(@RequestParam Map<String, Object> params) {
		PageUtils pageUtils = memberService.getMemberListByPage(params);
		return R.ok().put("page", pageUtils);
	}

}
